import {Component, OnInit} from '@angular/core';

@Component({
  selector: 'app-news',
  templateUrl: './news.component.html',
  styleUrls: ['./news.component.scss']
})
export class NewsComponent implements OnInit {
  title = '我是一个新闻组件';
  msg = '新闻组件msg';
  private username = '张三';
  public student: any = '我是学生';
  public content = '<h2>hello</h2>';

  arr = ['111', '1111', '33333', 'dddd'];

  constructor() {
    console.log(this.msg);
    this.msg = '改变属性的值';
  }

  ngOnInit(): void {
  }

}
